from numpy import *
import matplotlib.pyplot as plt

def set_ax(plt):
    ax = plt.gca()
    ax.xaxis.set_ticks_position('bottom')
    ax.yaxis.set_ticks_position('left')
    ax.spines['bottom'].set_position(('data', 0))
    ax.spines['left'].set_position(('data', 0))
    ax.spines['right'].set_color('none')
    ax.spines['top'].set_color('none')

if __name__=='__main__':
    t = arange(-5, 5 ,0.01)
    
    f1 = sin(t)
    f2 = sin(12*t)

    set_ax(plt)
    plt.plot(t, f1+f2, color='b')
    plt.show()
    
    